class RemovePersonColumnAndAddUserInQuery < ActiveRecord::Migration
  def self.up
    remove_column(:queries, :person_name)
    remove_column(:queries, :person_email)
    remove_column(:queries, :person_number)
    add_column(:queries, :user_id, :integer)
  end

  def self.down
    add_column(:queries, :person_name, :string)
    add_column(:queries, :person_email, :string)
    add_column(:queries, :person_number, :string)
    remove_column(:queries, :user_id)
  end
end
